import numpy as np

def accuracy_score(y_true,y_predict):
    assert y_true.shape[0]==y_predict.shape[0]#确保预测值与真实值特征数量相同

    return np.sum(y_true==y_predict)/len(y_true)
